package com.nage.components.touch;

import com.nage.engine.GameObject;
import com.nage.input.Input;

public class PongMovementLeft extends Controllable {

	public PongMovementLeft(GameObject p) {
		super(p);
		type = PONG_MOVEMENT_LEFT;
	}
	
	@Override
	public void update(long delta) {
	}
	
	@Override
	public void onInputEvent(Input i) {
		if(i.y > 0.9) {
			parent.x = i.x;
		}
	}

}
